import { RouteRecordRaw } from 'vue-router';
import Layout from '@/components/Layout/Layout.vue';

const routes: Array<RouteRecordRaw> = [
  {
    path: '/admin',
    redirect: '/admin/works'
  },
  {
    path: '/admin',
    name: 'Works',
    hidden: true,
    component: Layout,
    children: [{
      path: 'works',
      component: () => import('@/pages/Works/Works.vue'),
    }],
  },
  {
    path: '/admin',
    name: 'Material',
    component: Layout,
    children: [{
      path: 'material',
      component: () => import('@/pages/Material/Material.vue'),
    }],
  },
  {
    path: '/admin',
    name: 'Media',
    component: Layout,
    children: [{
      path: 'media',
      component: () => import('@/pages/Media/Media.vue'),
    }],
  },
  {
    path: '/login',
    name: 'login',
    hidden: true,
    component: () => import('@/pages/Login/Login.vue'),
  },


];
export default routes;
